package com.ruoyi.insurance.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 应急措施对象 emergency
 * 
 * @author ruoyi
 * @date 2024-08-16
 */
public class Emergency extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 应急ID */
    private Long emergencyId;

    /** 事故ID */
    @Excel(name = "事故ID")
    private Long troubleId;

    /** 具体措施 */
    @Excel(name = "具体措施")
    private String concreteMeasure;

    /** 应急类型 */
    @Excel(name = "应急类型")
    private Long emergencyStyle;

    /** 响应时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "响应时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date respondTime;

    public void setEmergencyId(Long emergencyId) 
    {
        this.emergencyId = emergencyId;
    }

    public Long getEmergencyId() 
    {
        return emergencyId;
    }
    public void setTroubleId(Long troubleId) 
    {
        this.troubleId = troubleId;
    }

    public Long getTroubleId() 
    {
        return troubleId;
    }
    public void setConcreteMeasure(String concreteMeasure) 
    {
        this.concreteMeasure = concreteMeasure;
    }

    public String getConcreteMeasure() 
    {
        return concreteMeasure;
    }
    public void setEmergencyStyle(Long emergencyStyle) 
    {
        this.emergencyStyle = emergencyStyle;
    }

    public Long getEmergencyStyle() 
    {
        return emergencyStyle;
    }
    public void setRespondTime(Date respondTime) 
    {
        this.respondTime = respondTime;
    }

    public Date getRespondTime() 
    {
        return respondTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("emergencyId", getEmergencyId())
            .append("troubleId", getTroubleId())
            .append("concreteMeasure", getConcreteMeasure())
            .append("emergencyStyle", getEmergencyStyle())
            .append("respondTime", getRespondTime())
            .toString();
    }
}
